﻿using GameStudio.Common.BootStrappers;
//using Microsoft.Practices.ServiceLocation;
using Microsoft.Practices.ServiceLocation;
using Utils.EventAggregator;
using GameStudio.IDE.Common.Events;
using System.IO;
using GameStudio.Common;

namespace GameStudio.IDE.Common.Bootstrappers
{
    public class OpenItemTask:IBootstrapper
    {
        #region IBootstrapper Members

        public void Run()
        {
            //var eventAggregator = EventAgg.EventAggregator;
            var eventAggregator = ServiceLocator.Current.GetInstance<IEventAggregator>();
            eventAggregator.GetEvent<AddNewItemEvent>().Subscribe(OnItemOpened);
        }

        #endregion

        private void OnItemOpened(Item item)
        {
            
        }
    }
}
